﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsCommandStudy
{
    public partial class Form1 : FormBase
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            this.RegisterAction("自定义", this.CustomerButton_Click);
        }

        protected override void 添加_Item_Click(object sender, EventArgs e)
        {
            MessageBox.Show("添加");
        }

        protected override IEnumerable<string> GetExtraButtons()
        {
            return new string[] { "自定义" };
        }

        private void CustomerButton_Click(object sender, EventArgs e)
        {
            MessageBox.Show("自定义");
        }
    }
}
